<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$currentPage->getTitle()}</title>
<META http-equiv="Content-type" content="text/html; charset={$fvConfig->get('charset')}" />
<meta name="keywords" content="{$currentPage->getKeyWords()}" />
<meta name="description" content="{$currentPage->getDescription()}" />

{foreach item=Css from=$fvConfig->get('includes.css')}
<link rel="stylesheet" type="text/css" href="{$Css}" />
{/foreach}

    
{foreach item=Js from=$fvConfig->get('includes.js')}
<SCRIPT type="text/javascript" src="{$Js}"></SCRIPT>
{/foreach}

</head>

<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="270px">
	<tr>
		<td width="25%" style=" background-image:url(/img/new/gr_1.jpg); background-repeat:repeat-x; padding-left:" valign="top" align="center">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr valign="top" height="144">
					<td align="center"><img src="/img/logo_4.jpg" width="102" height="144"></td>
				</tr>
				<tr valign="bottom" height="30px">
					<td valign="bottom" align="center"><a href="/" class="links3">Сертификация агенств</a></td>
				</tr>
			</table>
		</td>
		<td width="17%" style=" background-image:url(/img/new/gr_2.jpg); background-repeat:repeat-x;"><img src="/img/new/u_1.jpg" width="99" height="270" align="rleft"></td>
		<td width="280px" valign="top"><img src="/img/logo_0.jpg" width="280" height="266"></td>
		<td width="10%" style=" background-image:url(/img/new/gr_2.jpg); background-repeat:repeat-x;"><img src="/img/new/u_2.jpg" width="44" height="270" align="right"></td>
		<td  width="20%" style=" background-image:url(/img/new/gr_3.jpg); background-repeat:repeat-x;">
			<table border="0" cellpadding="0" cellspacing="0" width="172" height="270px" style=" background-image:url(/img/new/u_3.jpg); background-repeat:no-repeat; background-position:left;">
				<tr height="40px">
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:48px;" >Об АЛТУ</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:41px;">Состав АЛТУ</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:34px;">Вступление в АЛТУ</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:27px;">Проекты</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:20px;">Документы и статьи</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:13px;">Пресс-центр</a></td>
				</tr>
				<tr>
					<td><a href="/" class="links2" style="padding-left:4px;">Контакты</a></td>
				</tr>
				<tr height="40px">
					<td>&nbsp;</td>
				</tr>
			</table>
		
		</td>
		<td width="30%" style=" background-image:url(/img/new/gr_4.jpg); background-repeat:repeat-x;" align="left">
		{assign var=LoggedManager value=$currentPage->getLoggedUser()} 
			<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
				<tr height="34px">
					<td>&nbsp;</td>
				</tr>
				<tr height="45px">
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
							<tr>
								<td width="71"><img src="/img/new/22.jpg" width="71" height="45"></td>
								<td style=" background-image:url(/img/new/33.jpg); background-repeat:repeat-x;">
								{if $LoggedManager}<a class="links4">Добро пожаловать</a>&nbsp;<a class="links5">{$LoggedManager->get('login')}</a>
								{else}<a class="links4">Сертификация турагенств</a>
								{/if}
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="92px">
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
							<tr>
								<td width="46px"><img src="/img/new/44.jpg" width="46" height="92"></td>
								<td style=" background-image:url(/img/new/55.jpg); background-repeat:repeat-x;">
									<table border="0" cellpadding="0" cellspacing="0">
										{if $LoggedManager->is_agency}	
										<tr>
											<td style="padding-left:24px;"><a href="/own/" class="regystr">Страница агенства</a></td>
										</tr>
										<tr>
											<td style="padding-left:17px;"><a href="/own/staff/" class="regystr">Список сотрудников</a></td>
										</tr>
										{elseif $LoggedManager->agency_id}
										<tr>
											<td style="padding-left:24px;"><a href="/own/" class="regystr">Страница сотрудника</a></td>
										</tr>
										<tr>
											<td style="padding-left:17px;"><a href="/own/edit/" class="regystr">Редактировать информацию</a></td>
										</tr>
										{else}
										<tr>
											<td style="padding-left:24px;"><a href="/agency/register/" class="regystr">Регистрация агенства</a></td>
										</tr>
										{/if}
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="35px">
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
							<tr>
								<td width="56px"><img src="/img/new/66.jpg" width="56" height="35"></td>
								<td width="60px" style=" background-image:url(/img/new/77.jpg); background-repeat:repeat-x;">
								{if $LoggedManager}<a href="/login/logout/" class="vhod">Выход</a>
								{else}<a href="/login/" class="vhod">Вход</a>
								{/if}
								</td>
								<td width="25px"><img src="/img/new/88.jpg" width="25" height="35"></td>
								<td style=" background-image:url(/img/new/99.jpg); background-repeat:repeat-x;"><a href="/agency/register/" class="regystr">Регистрация</a></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="64px">
					<td>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" height="100%">
							<tr>
								<td width="16px"><img src="/img/new/10.jpg" width="16" height="64"></td>
								<td style=" background-image:url(/img/new/12.jpg); background-repeat:repeat-x;">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>


<table cellpadding="2" cellspacing="1" align="center" width="100%" border="0" height="100%" style="border-style:solid;border-width: thin;">
	<tr>
		<td valign="top">
			<table cellpadding="5" cellspacing="1" align="center" width="100%" style="border: 4px double black;">
				<tr>
					<td><a class="links2" href="/agency/">Список агенств</a> </td>
				</tr>
				
				{if $LoggedManager->is_agency}
				<tr>
					<td><a class="links2" href="/own/">Страница агенства</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/own/staff">Список сотрудников</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/login/logout/">Выйти</a><div id="hello" class="text">Добро пожаловать <B>{$LoggedManager->get('full_name')}</B></div></td>
				</tr>
			{elseif $LoggedManager->agency_id}
				<tr>
					<td><a class="links2" href="/own/">Страница сотрудника</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/own/edit">Редактировать информацию</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/login/logout/">Выйти</a><div id="hello" class="text">Добро пожаловать <B>{$LoggedManager->get('full_name')}</B></div></td>
				</tr>
			{else}
				<tr>
					<td><a class="links2" href="/agency/register/">Регистрация агенства</a></td>
				</tr>
				<tr>
					<td><a class="links2" href="/login/">Войти в систему</a></td>
				</tr>
			{/if}
			</table>
		</td>
		<td valign="top" width="80%">
		
		{$currentPage->getPageContent()}
		
		</td>
	</tr>
</table>
</body>
</html>